//
//  UIDevice+MobileType.h
//  HuoBao
//
//  Created by chaiyanan on 15/12/2.
//  Copyright © 2015年 jinxin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, NSNetWorkType)
{
    NSNetWorkType_Wifi=1,
    NSNetWorkType_2G,
    NSNetWorkType_3G,
    NSNetWorkType_4G,
    NSNetWorkType_None
};

typedef NS_ENUM(NSInteger, NSMobileType)
{
    NSMobileType_CHINAMOBILE=1,
    NSMobileType_CHINAUNICOM,
    NSMobileType_CHINATELECOM,
    NSMobileType_None
};


@interface UIDevice (MobileType)

//2G,3G,4G,WIFI,无服务
+ (NSNetWorkType)netWorkType;
//运营商名字
+ (NSMobileType)mobileName;

@end
